<%@ page import="martial.arts.tracker.Student" %>



<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'studentId', 'error')} ">
	<label for="studentId">
		<g:message code="student.studentId.label" default="Student Id" />
		
	</label>
	<g:textField name="studentId" value="${studentInstance?.studentId}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'lastName', 'error')} ">
	<label for="lastName">
		<g:message code="student.lastName.label" default="Last Name" />
		
	</label>
	<g:textField name="lastName" value="${studentInstance?.lastName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'firstName', 'error')} ">
	<label for="firstName">
		<g:message code="student.firstName.label" default="First Name" />
		
	</label>
	<g:textField name="firstName" value="${studentInstance?.firstName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'belt', 'error')} required">
	<label for="belt">
		<g:message code="student.belt.label" default="Belt" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="belt" name="belt.id" from="${martial.arts.tracker.Belt.list()}" optionKey="id" required="" value="${studentInstance?.belt?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'dob', 'error')} required">
	<label for="dob">
		<g:message code="student.dob.label" default="Dob" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dob" precision="day"  value="${studentInstance?.dob}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'lastBeltTestDate', 'error')} required">
	<label for="lastBeltTestDate">
		<g:message code="student.lastBeltTestDate.label" default="Last Belt Test Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="lastBeltTestDate" precision="day"  value="${studentInstance?.lastBeltTestDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="student.email.label" default="Email" />
		
	</label>
	<g:textField name="email" value="${studentInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: studentInstance, field: 'account', 'error')} required">
	<label for="account">
		<g:message code="student.account.label" default="Account" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="account" name="account.id" from="${martial.arts.tracker.Account.list()}" optionKey="id" required="" value="${studentInstance?.account?.id}" class="many-to-one"/>
</div>

